package me.yricky.alia.data.drc

import me.yricky.alia.data.hierarchy.Cell
import me.yricky.alia.data.hierarchy.Library
import me.yricky.alia.data.shape.Box
import me.yricky.alia.utils.ProgressHandler

/**
 * @author Yricky
 * @date 2022/2/1
 */

const val DRC_RES_OK = 0
const val DRC_RES_WARNING = 1
const val DRC_RES_REJECT = -1

data class DRCResult(
    val result: Int,
    val info:String,
    val highlightBox:Box
)

typealias DRCRule = (ProgressHandler,Library,Cell)->List<DRCResult>